<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <button id="btn">btn</button>
    <script>
        var btn =document.getElementById("btn");
        btn.onclick = function(){
            window.open("https://www.baidu.com","baidu",'width=10,height=10,left=30,top=140') //打开了百度
            // window.close();   //关闭当前网页
        }
    </script>
</body>
</html>